# 代码所有：cxw
# 开发时间：2021/11/10 21:13

#实例
# file_name="text_file/user_name.txt"
# with open(file_name,"w") as f_users:
#     print("请输入你的name:\n")
#     s=input()
#     f_users.write(s)

filename="text_file/user_namechange.txt"
print("请输入你的名字，end结束")
while True:
    s = input()
    if s=="end":
        break
    else:
        with open(filename,"w") as f_name:
            f_name.write(s+"\n")
            print("你的名字是；",s)

